package com.dy.design_pattern_study.command_pattern.dome2;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-19
 * @Content 服务员类 -第一版
 */
public class WaiterFirst {
    private Command command;

    //设置订单
    public void setOrder(Command command) {
        //服务员仅需要把用户的命令进行记录即可，后面需要通知大厨来做
        this.command = command;
    }

    //执行通知
    public void notifyMethod(){
        command.excuteCommand();
    }
}
